import request from "@/utils/request";


//分页获取订单列表
export function getTiketOrderListByPage(query) {
  return request({
    url: "/plain/ai-plain/plainOrder/page",
    method: "get",
    params: query,
  });
}
//获取列表
export function getTiketOrderList(query) {
  return request({
    url: "/plain/ai-plain/plainOrder/list",
    method: "get",
    params: query,
  });
}

//订单详情
export function getTiketOrderDetail(query) {
  return request({
    url: "/plain/ai-plain/plainOrder/details",
    method: "get",
    params: query,
  });
}

//根据订单号获取订单状态
export function getTiketOrderDetail(orderNo) {
  return request({
    url: `/plain/ai-plain/plainOrder/orderStatus?orderNo=${orderNo}`,
    method: "get"
  });
}

//下单并返回收款码
export function getTiketOrderDetail(data) {
  return request({
    url: `/plain/ai-plain/plainOrder/buy`,
    method: "post",
    data
  });
}
